import Vue from 'vue'
import Router from 'vue-router'
import index from '@/components/index'
import BaiduMap from 'vue-baidu-map'
Vue.use(BaiduMap, {
  ak: 'sUdSmbsNs3SD23Gk4dYZXIusmRtYC3w7'
})
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'index',
      component: index
    },
    {
      path: '/gisMap',
      // component: Layout,
      name: 'GIS 地图',
      hidden: false,
      meta: {
        title: 'GIS 地图',
        icon: 'fa fa-drivers-license',
        requiresAuth: true
      },
      children: [
        {
          path: '/gisMap',
          show: true,
          // component: () => import('../view/gisMap/gisMap.vue'),
          meta: { title: 'GIS 地图', icon: 'fa fa-map' }
        }
      ]
    },
  ]
})
